Allows your customer to create a buy or sell crypto order with Banxa. Upon success, the response will contain a checkout URL which will be unique for the order. The customer will be redirected to this URL to complete the checkout process, which will expire after 1 minute if a redirect does not occur.

Building a Request for Buy Orders (On-Ramp)

Buy orders require the following mandatory fields:

  • account_reference: the customer's unique ID
  • source: a supported fiat currency e.g. USD
  • target: a supported cryptocurrency e.g. BTC
  • wallet_address: the address associated with the cryptocurrency being purchased
  • wallet_address_tag: the tag/memo associated with the wallet address, if required
  • return_url_on_success: used to return the customer to your website once the order is completed

Building a Request for Sell Orders (Off-Ramp)

Sell orders require the following mandatory fields:

  • account_reference: the customer's unique ID
  • source: similar to a Buy order, this parameter is now a supported cryptocurrency instead of fiat currency
  • target: supported fiat currency
  • refund_address: the address associated with the cryptocurrency being sold in the event that a refund is necessary
  • refund_address_tag: the tag/memo associated with the wallet address, if required
  • return_url_on_success: used to return the customer to your website once the order is completed

Response

When an order is ready to be completed by the customer, you will receive the following:

FieldDescriptionFormat
data.order.idUnique ID for the the ordernumber
data.order.account_idBanxa generated account ID for the customer and linked to the customer reference provided by youstring
data.order.account_referenceUnique customer reference provided by youstring
data.order.countryKYC country of the customerstring
data.order.order_typeOrder type. Indicates whether the order is a sell or buy crypto orderstring
data.order.fiat_codeFiat currency codestring
data.order.fiat_amountFiat currency valuedecimal
data.order.coin_codeCryptocurrency codestring
data.order.coin_amountCryptocurrency valuedecimal
data.order.wallet_addressCryptocurrency wallet addressstring
data.order.wallet_addres_tagThe tag/memo associated with the wallet address, if requiredstring
data.order.blockchainBlockchain network used for the cryptocurrencyarray
data.order.blockchain.codeBlockchain codestring
data.order.blockchain.descriptionBlockchain namestring
data.order.created_atTimestamp of order creation in UTCstring
data.order.checkout_urlURL that redirects customer to Banxa checkoutstring
Language
Authorization
Header
Click Try It! to start a request and see the response here!